<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>

	<body>
		<style>
			div {
				width: 10vmax;
				text-align: center;
				line-height: 10vmax;
				display: inline-block;
				/* 背景色为元素 color */
				background-color: currentColor;
			}
			.box1 {
				color: #ffeb3b;
			}
			.box2 {
				color: teal;
			}
			.box3 {
				color: blue;
			}

			.txt {
				filter: grayscale(1) contrast(999) invert(1);
			}
		</style>
		<div class="box1">
			<span class="txt">前端侦探</span>
		</div>
		<div class="box2">
			<span class="txt">前端侦探</span>
		</div>
		<div class="box3">
			<span class="txt">前端侦探</span>
		</div>
	</body>
</html>
